package main

import "fmt"

func main() {
	// a=1,b=2,c=3,d=4,e=5,f=6,g=7,h=8,i=9
	const (
		_ = iota
		a
		b
		c
		d
		e
		f
		g
		h
		i
	)

	fmt.Println(a, b, c, d, e, f, g, h, i)
	// const (
	//	b1 = 1
	//	b2 = 2
	//	b3 = 3
	//	b4 = 4
	//	b5 = 5
	//   b6 = 6
	//    b7 = 7
	//	b8 = 8
	//	b9 = 9
	//)

	var (

		//2
		b2 = b * b
		b3 = b * c
		b4 = b * d
		b5 = b * e
		b6 = b * f
		b7 = b * g
		b8 = b * h
		b9 = b * i

		//3
		c3 = c * c
		c4 = c * d
		c5 = c * e
		c6 = c * f
		c7 = c * g
		c8 = c * h
		c9 = c * i

		//4
		d4 = d * d
		d5 = d * e
		d6 = d * f
		d7 = d * g
		d8 = d * h
		d9 = d * i

		//5
		e5 = e * e
		e6 = e * f
		e7 = e * g
		e8 = e * h
		e9 = e * i

		//6
		f6 = f * f
		f7 = f * g
		f8 = f * h
		f9 = f * i

		//7
		g7 = "49"
		g8 = "56"
		g9 = "63"

		//8
		h8 = "64"
		h9 = "72"

		//9
		i9 = "81"
	)
	fmt.Println("1x1=", a, "\n1x2=", b, "2x2=", b2,
		"\n1x3=", c, "2x3=", b3, "3x3=", c3,
		"\n1x4=", d, "2x4=", b4, "3x4=", c4, "4x4=", d4,
		"\n1x5=", e, "2x5=", b5, "3x5=", c5, "4x4=", d5, "5x5=", e5,
		"\n1x6=", f, "2x6=", b6, "3x6=", c6, "4x6=", d6, "5x6=", e6, "6x6=", f6,
		"\n1x7=", g, "2x7=", b7, "3x7=", c7, "4x7=", d7, "5x7=", e7, "6x7=", f7, "7x7=", g7,
		"\n1x8=", h, "2x8=", b8, "3x8=", c8, "4x8=", d8, "5x8=", e8, "6x8=", f8, "7x8=", g8, "8x8=", h8,
		"\n1x9=", i, "2x9=", b9, "3x9=", c9, "4x9=", d9, "5x9=", e9, "6x9=", f9, "7x9=", g9, "8x9=", h9, "9x9=", i9)
}
